import type { RouteObject } from 'react-router-dom'

export interface XMeta {
  icon?: React.ReactNode
  title?: string
}

// XRoute是在原来路由表对象的path,element和children的基础上,额外添加了meta,hiddent属性,并覆盖了原有的children
export interface XRoute extends RouteObject {
  meta?: XMeta
  children?: XRoutes
  hidden?: boolean
}

export type XRoutes = XRoute[]
